home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / ZoomedVideo.h < prev   
Encoding:
C/C++ Source or Header  |  2000-04-12  |  4.1 KB  |  158 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        ZoomedVideo.h
  3.  
  4.      Contains:    PC Card Family Zoomed Video Driver Interface
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1996-1999 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __ZOOMEDVIDEO__
  18. #define __ZOOMEDVIDEO__
  19.  
  20. #ifndef __MACTYPES__
  21.     #include <MacTypes.h>
  22. #endif
  23.  
  24. #ifndef __DEVICES__
  25.     #include <Devices.h>
  26. #endif
  27.  
  28.  
  29.  
  30.  
  31. #if PRAGMA_ONCE
  32. #pragma once
  33. #endif
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. #if PRAGMA_IMPORT
  40. #pragma import on
  41. #endif
  42.  
  43. #if PRAGMA_STRUCT_ALIGN
  44.     #pragma options align=mac68k
  45. #elif PRAGMA_STRUCT_PACKPUSH
  46.     #pragma pack(push, 2)
  47. #elif PRAGMA_STRUCT_PACK
  48.     #pragma pack(2)
  49. #endif
  50.  
  51. #define kZVDriverName "\p.ZVPort"
  52.  
  53. /* Control codes */
  54.  
  55. enum {
  56.     cscZVVideoEnable            = 2,                            /* Used to enable or disable ZV Video*/
  57.     cscZVSetCurrentAnalogValue    = 3,                            /* Used to set brightness, contrast, etc.*/
  58.     cscZVSetInput                = 9,                            /* Set video source to selected input*/
  59.     cscZVSetInputStandard        = 11,                            /* Set the input to NTSC, PAL, or SECAM*/
  60.     cscZVGetMaxSourceRect        = 12                            /* Get Maximum Source Rect*/
  61. };
  62.  
  63. /* Status codes*/
  64. enum {
  65.     cscZVGetVideoEnable            = 2,                            /* Indicates whether ZV Video is enabled*/
  66.     cscZVGetCurrentAnalogValue    = 3,                            /* Used to get brightness, contrast, etc.*/
  67.     cscZVGetDefaultAnalogValue    = 4,
  68.     cscZVGetVSyncState            = 5,                            /* Used to look for a Vertical Sync on ZV Video*/
  69.     cscZVGetInfo                = 6,                            /* Returns the ZV Information*/
  70.     cscZVGetInputFlags            = 7,                            /* Returns the input flags.*/
  71.     cscZVGetNumberOfInputs        = 8,                            /* Returns the number of video inputs*/
  72.     cscZVGetInput                = 9,                            /* Zero-based input number*/
  73.     cscZVGetInputFormat            = 10                            /* Returns whether input is compsite/s-video*/
  74. };
  75.  
  76.  
  77. /*
  78.   -----------------------------------------------------------------
  79.    Additional parameters for csInfoZV control call
  80.       A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
  81.       which must be filled by the driver in response to this call.
  82. */
  83.  
  84. typedef UInt32                             ZVFeatures;
  85. enum {
  86.     kZVHasAudio                    = (1 << 0),
  87.     kZVHasTVTuner                = (1 << 1),
  88.     kZVHasContrast                = (1 << 16),
  89.     kZVHasBrightness            = (1 << 17),
  90.     kZVHasSharpness                = (1 << 18),
  91.     kZVHasSaturation            = (1 << 19),
  92.     kZVHasHue                    = (1 << 20)
  93. };
  94.  
  95.  
  96.  
  97. struct ZVInfo {
  98.     ZVFeatures                         features;
  99.     UInt32                             currentFlags;
  100.     Rect                             activeRect;
  101.     Boolean                         isInterlaced;
  102.     SInt8                             filler;
  103.     UInt32                             reserved1;
  104.     UInt32                             reserved2;
  105. };
  106. typedef struct ZVInfo                    ZVInfo;
  107.  
  108. struct ZVFlagRecord {
  109.     Boolean                         csFlag;
  110.     SInt8                             filler;
  111. };
  112. typedef struct ZVFlagRecord                ZVFlagRecord;
  113. /*
  114.   -----------------------------------------------------------------
  115.    Additional definitions for "AnalogCtlZV" control calls
  116.       A pointer to a ZVSetAnalogControlParam is passed to the driver
  117.       whenever the system needs to adjust one of the analog settings.
  118. */
  119.  
  120. typedef UInt16                             ZVAnalogControlSelector;
  121. enum {
  122.     kZVContrast                    = 1,                            /* Range:  0x0 <= no change to image, larger values increase the contrast*/
  123.     kZVBrightness                = 2,                            /* Range:  0x0 <= darkest setting, 0xffff = lightest setting*/
  124.     kZVSharpness                = 3,                            /* Range:  0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering*/
  125.     kZVSaturation                = 4,                            /* Range:  0x0 <= min saturation, 0xffff <= max saturation        */
  126.     kZVHue                        = 5,                            /* Range:  0x0 <= -180. shift in hue, 0xffff <= 179. shift, 0x8000 <=0. shift*/
  127.     kZVBlackLevel                = 6,                            /* Range:  0x0 <= max black, 0xffff <= min black level*/
  128.     kZVWhiteLevel                = 7                                /* Range:  0x0 <= min white, 0xffff <= max white level*/
  129. };
  130.  
  131.  
  132. struct ZVAnalogControlRecord {
  133.     ZVAnalogControlSelector         whichControl;
  134.     UInt16                             value;
  135. };
  136. typedef struct ZVAnalogControlRecord    ZVAnalogControlRecord;
  137.  
  138. #if PRAGMA_STRUCT_ALIGN
  139.     #pragma options align=reset
  140. #elif PRAGMA_STRUCT_PACKPUSH
  141.     #pragma pack(pop)
  142. #elif PRAGMA_STRUCT_PACK
  143.     #pragma pack()
  144. #endif
  145.  
  146. #ifdef PRAGMA_IMPORT_OFF
  147. #pragma import off
  148. #elif PRAGMA_IMPORT
  149. #pragma import reset
  150. #endif
  151.  
  152. #ifdef __cplusplus
  153. }
  154. #endif
  155.  
  156. #endif /* __ZOOMEDVIDEO__ */
  157.  
  158.